package com.aode.common.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.databinding.BaseObservable;

public class LocalMusicBean extends BaseObservable implements Parcelable {
    private String id; //歌曲id
    private String song; //歌曲名称
    private String singer; //歌手名称
    private String album; //专辑名称
    private String duration; //歌曲时长
    private String path; //歌曲路径
    private String albumArt;  //专辑地址
    private String index;

    public LocalMusicBean(){}


    protected LocalMusicBean(Parcel in) {
        id = in.readString();
        song = in.readString();
        singer = in.readString();
        album = in.readString();
        duration = in.readString();
        path = in.readString();
        albumArt = in.readString();
        index = in.readString();
    }

    public static final Creator<LocalMusicBean> CREATOR = new Creator<LocalMusicBean>() {
        @Override
        public LocalMusicBean createFromParcel(Parcel in) {
            return new LocalMusicBean(in);
        }

        @Override
        public LocalMusicBean[] newArray(int size) {
            return new LocalMusicBean[size];
        }
    };

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSong() {
        return song;
    }

    public void setSong(String song) {
        this.song = song;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getAlbumArt() {
        return albumArt;
    }

    public void setAlbumArt(String albumArt) {
        this.albumArt = albumArt;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(song);
        dest.writeString(singer);
        dest.writeString(album);
        dest.writeString(duration);
        dest.writeString(path);
        dest.writeString(albumArt);
        dest.writeString(index);
    }
}
